home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
wndwc20.zip
/
EX7.C
< prev
next >
Wrap
Text File
|
1989-03-06
|
842b
|
24 lines
/* EXAMPLE 7: VIRTUALMODE window
----------------------------------------------------------------------*/
#include <conio.h>
#include <dos.h>
#include "wndwc20.h"
void main()
{
qinit();
initwindow( LIGHTGRAY_BG, 1, 0 );
setwindowmodes( VIRTUALMODE );
makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
SINGLE_BORDER, WINDOW1 );
writetovirtual( WINDOW1 );
titlewindow( TOP, LEFT, YELLOW+BLUE_BG, " Virtual Window " );
wwrite( 1, 1, "Upper left corner" );
wwritec( 7, "This message is centered on the screen" );
vupdatewindow(); /* Update the complete window on the CRT. */
writetocrt(); /* Return to writing on the CRT. */
getch();
}